function initMaskImage() {
    var maskImgList = document.querySelectorAll("img[data-type='maskImg']");
    [].forEach.call(maskImgList, function (img) {
        img.onload = function (ev) {
            var image = ev.target;
            var width = image.width;
            var height = image.height;
            var divDom = document.createElement("div");
            var divStyle = "style='width: " + width + "px; height: " + height + "px; position: relative; display: inline-block;'"
            var imgHtml = image.outerHTML;
            image.outerHTML = '<div ' + divStyle + '>' + imgHtml + '<svg viewBox="0 0 100 100"><path onanimationend="hiddenSvg(this)" class="imgMask" d="M -20 50 A 70 70 0 1 1 -20 51Z" fill="none" stroke="rgba(0, 0, 0, 0.5)"/></svg></div>';
        }
    });
}

function hiddenSvg(dom) {
    dom.parentNode.style.display = "none";
}